<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>

			<p:panel  toggleable="true">
			<f:facet name="header">
			Tareas asignadas que deben completar los alumnos <p:commandLink onclick="filterTareaEnvidadDgl.show()"><p:graphicImage value="resources/img/ico_buscar_med.jpg" /></p:commandLink>
						
			</f:facet>
			<h:form id="dataTareaEnviadas">
			
							<p:dataTable 
									id="dataTareasEnviada"
									var="tarea" 
									value="#{loginProfesoresBeam.listVwProfActividades}" 
									paginator="true" 
									rows="5" 
									paginatorPosition="top"
									paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
									rowsPerPageTemplate="5,10,15" 
									>
								<p:column headerText="Asunto">
									<h:outputText value="#{tarea.id.asunto}" />
								</p:column>
								<p:column headerText="Materia">
									<h:outputText value="#{tarea.id.nombreMateria}" />
								</p:column>
								<p:column headerText="Fecha de entrega">
									<h:outputText  value="#{tarea.id.fechaEntrega}" >
										<f:convertDateTime type="date" dateStyle="medium" timeZone="GMT+1:00" />										
									</h:outputText>
								</p:column>
								<p:column >
								<p:commandButton 
	icon="ui-icon-search" 
	actionListener="#{profesorCreateActivity.viewTarea(tarea)}" 
	update=":formViewEnviadasTarea" 
	oncomplete="enviadasTareaDialog.show()" 
	title="View Detail">  
<f:setPropertyActionListener 
	value="#{tarea}" 
	target="#{loginProfesoresBeam.selectVwProfActividades}" />  
</p:commandButton>
								</p:column>
																		
							</p:dataTable>
				</h:form>
							<h:form 
	id="formViewEnviadasTarea" 
	enctype="multipart/form-data">
<p:dialog 
	header="#{loginProfesoresBeam.selectVwProfActividades.id.asunto}" 
	widgetVar="enviadasTareaDialog" 
	modal="false"
	showEffect="fade">
<ui:include src="/pages/forms/formsProfesores/formInput/inputEditTarea.xhtml" />
</p:dialog>
</h:form>			


				</p:panel>
					
</ui:composition>

</html>


